package com.xiaoxiong.gobang.evaluate;

/**
 * @author xiaoxiong
 * @Package com.xiaoxiong.gobang.evaluate
 * @Description:
 * @email 249900679@qq.com
 * @date 2016/4/4 17:34
 */
public class ThirdEvaluate implements Evaluator {

    @Override
    public int Evaluate(int[] board, int position, int player) {
        int score = 0;

        for(int i = 17;i < 256;++i){
            if(board[i] == player){
                int value = new SecondEvaluate().Evaluate(board, i, player);
                if(value > score){
                    score = value;
                }
            }
        }

        return 0;
    }
}
